package c.h.a.m0;

import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Toast;
import c.h.a.x.r;
import com.liuzh.deviceinfo.provider.ContentFileProvider;
import java.io.File;

/* compiled from: lambda */
public final /* synthetic */ class c implements OnClickListener {
    public final /* synthetic */ Context a;
    public final /* synthetic */ String b;

    public /* synthetic */ c(Context context, String str) {
        this.a = context;
        this.b = str;
    }

    public final void onClick(View view) {
        Context context = this.a;
        String str = this.b;
        File file = r.a;
        Intent intent = new Intent();
        intent.setAction("android.intent.action.SEND");
        intent.putExtra("android.intent.extra.STREAM", ContentFileProvider.a(new File(str)));
        intent.setType("text/*");
        try {
            context.startActivity(Intent.createChooser(intent, context.getString(2131690355)));
        } catch (ActivityNotFoundException unused) {
            Toast.makeText(context, 2131689838, 0).show();
        }
    }
}
